<?php
if(!$_GET["name"] && !$_GET["friendships"] && !$_GET["post"] && !$_GET["type"]=="mentions" && !$_GET["type"]=="comments" && !$_GET["search"] && !$_GET["trend"]){
?>
<!-- Publish Box Start -->
<div class="publishDiv">
<div>
<div id="share" class="publishBoxOutline" style="width: 505px">
<textarea id="b" class="publishBox" style="width: 505px" onfocus="checkat(0);if(this.value=='分享身边的新鲜事……'){this.style.color='#000';this.value='';}" onblur="if(this.value==''){this.style.color='#888';this.value='分享身边的新鲜事……'}" oninput="setTimeout(function(){checkWords(0);checkat(0);},100);" onpopertychange="checkWords(0);checkat(0);" onblur="showat = false;lcat=false;">分享身边的新鲜事……</textarea>
<div class="shareTag" id="shareTag">转发<span class="cancelShareTag" onclick="document.getElementById('shareTag').style.display='none';document.getElementById('shareRepost').innerHTML='';">×</span></div><div class="shareTag" id="imageTag">图片<span class="cancelShareTag" onclick="document.getElementById('imageTag').style.display='none';document.getElementById('imageDiv').value='';document.getElementById('imageUploadShow').innerHTML='';">×</span></div>
<div id="shareRepost" style="display: none;"></div>
<div class="shareBoxIcons">
<div id="checkBox" class="checkBox"></div>
<div class="shareBoxIconsPaw" onclick="document.getElementById('canvasDiv').style.display='block';"></div>
<div class="shareBoxIconsFace" onclick="showFacesAction(0);return false;"></div>
<div class="shareBoxIconsPic">

<form target="imageuploadframe" name="fileupload" action="/uploadimage" method="POST" enctype="multipart/form-data"> 
<input onchange="showimageuploading();this.form.submit();this.form.reset();" type="file" name="weibo_image" value="" accept="image/png, image/x-png, image/jpeg, image/pjpeg, image/pipeg, image/gif, image/bmp, image/x-bmp, image/x-MS-bmp">
</form>
<iframe name="imageuploadframe" src="about:blank" style="display: none;"></iframe>
<input id="imageDiv" type="hidden" value="" />
</div>
<div class="shareBoxIconsTopic" onclick="insertTrend(document.getElementById('b'));"></div>
<div class="floatClear"></div>
</div>
<div class="floatClear"></div>
</div>
<div class="publishButton">
<button class="publishButtonTag" onclick="if(!document.getElementById('b').value){return false;};sendStatus(document.getElementById('b').value,document.getElementById('shareRepost').innerText,document.getElementById('imageDiv').value,0);document.getElementById('shareTag').style.display='none';document.getElementById('shareRepost').innerHTML='';document.getElementById('imageDiv').value='';document.getElementById('imageTag').style.display='none';document.getElementById('imageUploadShow').innerHTML='';">发　布</button>
</div>
<div class="floatClear"></div>
</div>
<div id="faceDiv"></div>
<div id="imageUploadShow"></div>
</div>
<!-- Publish Box End -->
<?php
}
?>